﻿@model IEnumerable<WebVideo.EntityQuestions_MultipleChoice>

<div>
        <br />
    </div>
     <div class="contenttitle radiusbottom0">
        <h2 class="table"><span>Danh sách câu hỏi dành cho hình ảnh của video <small>(Cần phải có ít nhất 1 câu để video có thể hoạt động)</small></span></h2>
    </div>
    <!--contenttitle-->
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="dyntable">
        <colgroup>
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
        </colgroup>
        <thead>
            <tr>
                <th class="head0">Id</th>
                 <th class="head1">Hình ảnh</th>
                <th class="head0">Nội dung</th>
                <th class="head1">Video</th>
                <th class="head0">Date</th>
               
                 <th class="head1">Câu trả lời</th>
                <th class="head0"></th>
            </tr>
        </thead>
        <tfoot>
            <tr>
                <th class="head0">Id</th>
                <th class="head1">Hình ảnh</th>
                <th class="head0">Nội dung</th>
                <th class="head1">Video</th>
                <th class="head0">Date</th>
             
                 <th class="head1">Câu trả lời</th>
                <th class="head0"></th>

            </tr>
        </tfoot>
        <tbody>
            @{
                foreach (var item in Model)
                {
                <tr class="gradeX">
                    <td>
                        @Html.DisplayFor(modelitem => item.Id)
                    </td>
                     <td>
                        @{
                            var imageFile = "~/Content/Images/Video/";
                            if (item.Image != null)
                            {
                                imageFile += @item.Image;
                            }
                            else
                            {
                                imageFile += "no-photo.jpg";
                            }
                        }
                        <img src= "@Url.Content(imageFile)" style="width:100px; height:100px" alt="" />
                    </td>
                    <td>
                        @Html.Raw(item.Des)
                    </td>
                     <td>
                        @Html.DisplayFor(modelitem => item.EntityVideo.Name )
                    </td>
                    <td>
                        @Html.DisplayFor(modelitem => item.Date )
                    </td>
                    
                     <td>
                        @Html.DisplayFor(modelitem => item.Result  )
                    </td>
                    <td class ="eddelete">
                      
                        @Html.ActionLink(" ", "Edit","Questions_MultipleChoice", new { IdQVideo = @item.Id }, new { @class = "edit", title="Edit" })

                        &nbsp;
                        
                        <a href="#" class="delete1" title="Delete" > Delete</a>
                    </td>
                </tr> 
                }                      
            }
        </tbody>
    </table>